import request from '@/utils/request'

// 查询申报项目列表
export function listApplication(query) {
  return request({
    url: '/project/application/list',
    method: 'get',
    params: query
  })
}

// 查询申报项目详细
export function getApplication(applicationId) {
  return request({
    url: '/project/application/' + applicationId,
    method: 'get'
  })
}

// 新增申报项目
export function addApplication(data) {
  return request({
    url: '/project/application',
    method: 'post',
    data: data
  })
}

// 修改申报项目
export function updateApplication(data) {
  return request({
    url: '/project/application',
    method: 'put',
    data: data
  })
}

// 删除申报项目
export function delApplication(applicationId) {
  return request({
    url: '/project/application/' + applicationId,
    method: 'delete'
  })
}
